home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Freeware / Miro 1.0 / Miro_Installer.exe / xulrunner / chrome / toolkit.jar / content / help / help.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-09-20  |  13.5 KB  |  290 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?xml-stylesheet href="chrome://help/skin/" type="text/css"?>
  4. <?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>
  5.  
  6. <?xul-overlay href="chrome://help/content/helpContextOverlay.xul"?>
  7. <!DOCTYPE window [
  8.     <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  9.     %brandDTD;
  10.     <!ENTITY % helpDTD SYSTEM "chrome://help/locale/help.dtd">
  11.     %helpDTD;
  12.     <!ENTITY % findBarDTD SYSTEM "chrome://global/locale/findbar.dtd" >
  13.     %findBarDTD;
  14.     <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  15.     %globalDTD;
  16. ]>
  17.  
  18. <window id="help"
  19.         windowtype="mozilla:help"
  20.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  21.         width="700"
  22.         height="550"
  23.         persist="width height screenX screenY zlevel"
  24.         onload="init();"
  25.         onunload="uninitFindBar(); window.XULBrowserWindow.destroy();">
  26.  
  27.   <script type="application/x-javascript" src="chrome://help/content/help.js"/>
  28.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  29.   <script type="application/x-javascript" src="chrome://global/content/findBar.js"/>
  30.   <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  31.   <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  32.  
  33.   <stringbundle id="bundle_findBar" src="chrome://global/locale/findbar.properties"/>
  34.     
  35.   <menupopup id="backMenu" position="after_start"
  36.              onpopupshowing="return createBackMenu(event);"
  37.              oncommand="gotoHistoryIndex(event);"/>
  38.   <menupopup id="forwardMenu" position="after_start"
  39.              onpopupshowing="return createForwardMenu(event);"
  40.              oncommand="gotoHistoryIndex(event);"/>
  41.   <popupset id="contentAreaContextSet"/>
  42.  
  43.   <broadcasterset id="helpBroadcasters">
  44.     <broadcaster id="canGoBack"    disabled="true"/>
  45.     <broadcaster id="canGoForward" disabled="true"/>
  46.   </broadcasterset>
  47.   <commandset id="globalEditMenuItems"/>
  48.   <commandset id="selectEditMenuItems">
  49.     <command id="cmd_close" oncommand="close();"/>
  50.     <command id="Help:Home" oncommand="goHome();"/>
  51.     <command id="Help:Back" oncommand="goBack();"       observes="canGoBack"/>
  52.     <command id="Help:Forward" oncommand="goForward();" observes="canGoForward"/>
  53.     <command id="Help:ToggleSidebar" oncommand="toggleSidebar();"/>
  54.     <command id="cmd_closeWindow" oncommand="close();"/>
  55.     <command id="cmd_textZoomReduce" oncommand="ZoomManager.prototype.getInstance().reduce();"/>
  56.     <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
  57.     <command id="cmd_find" oncommand="onFindCmd();"/>
  58.     <command id="cmd_findAgain" oncommand="onFindAgainCmd();"/>
  59.     <command id="cmd_findPrevious" oncommand="onFindPreviousCmd();"/>    
  60.   </commandset>
  61.   <keyset id="keys">
  62.     <key id="goHome"      keycode="VK_HOME"  command="Help:Home" modifiers="alt"/>
  63.     <key id="goBackKb"     keycode="VK_LEFT"  command="Help:Back" modifiers="alt"/>
  64.     <key id="goForwardKb"  keycode="VK_RIGHT" command="Help:Forward" modifiers="alt"/>
  65.     <key keycode="VK_BACK" command="Help:Back"/>
  66.     <key keycode="VK_BACK" command="Help:Forward" modifiers="shift"/>
  67.     <key id="printKb" key="&printCmd.commandkey;" oncommand="print();"
  68.          modifiers="accel"/>  
  69.     <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
  70.     <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
  71.     <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
  72.     <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
  73.     <key keycode="&findAgainCmd.commandkey2;"  command="cmd_findPrevious" modifiers="shift"/>
  74.     <key keycode="VK_F5" oncommand="reload();"/>
  75.     <key id="key_closeWindow" key="&closeWindow.commandkey;"
  76.          command="cmd_closeWindow" modifiers="accel"/>
  77.     <key id="key_closeSearchSidebar" keycode="VK_ESCAPE"
  78.          oncommand="hideSearchSidebar(event)"/>
  79.     <key id="key_textZoomEnlarge" key="&textZoomEnlargeCmd.commandkey;"
  80.          command="cmd_textZoomEnlarge" modifiers="accel"/>
  81.     <key id="key_textZoomEnlarge2" key="&textZoomEnlargeCmd.commandkey2;"
  82.          command="cmd_textZoomEnlarge" modifiers="accel"/>
  83.     <key id="key_textZoomReduce" key="&textZoomReduceCmd.commandkey;"
  84.          command="cmd_textZoomReduce" modifiers="accel"/>
  85.     <key id="key_textZoomReset" key="&textZoomResetCmd.commandkey;"
  86.          oncommand="ZoomManager.prototype.getInstance().reset();" modifiers="accel"/>
  87.     <key id="key_focusSearch" key="&helpSearch.commandkey;"
  88.          oncommand="focusSearch()" modifiers="accel"/>
  89.  
  90.   </keyset>
  91.   <stringbundle id="bundle_viewZoom"/>
  92.   <stringbundle id="findBundle"
  93.                 src="chrome://global/locale/finddialog.properties"/>
  94.   <stringbundle id="bundle_help"
  95.                 src="chrome://help/locale/help.properties"/>
  96.  
  97.   <vbox flex="1">
  98.     <toolbox id="help-toolbox" class="toolbox-top">
  99.       <toolbar id="HelpToolbar" class="chromeclass-toolbar">
  100.         <toolbarbutton id="help-back-button" type="menu-button"
  101.                        label="&backButton.label;"
  102.                        oncommand="if (event.target == this) goBack(); else gotoHistoryIndex(event);"
  103.                        observes="canGoBack" context="backMenu"
  104.                        tooltiptext="&backButton.tooltip;"
  105.                        chromedir="&locale.dir;">
  106.           <menupopup context="" onpopupshowing="createBackMenu(event);"/>
  107.         </toolbarbutton>
  108.         <toolbarbutton id="help-forward-button" type="menu-button"
  109.                        oncommand="if (event.target == this) goForward(); else gotoHistoryIndex(event);"
  110.                        tooltiptext="&forwardButton.tooltip;"
  111.                        observes="canGoForward"
  112.                        chromedir="&locale.dir;">
  113.           <menupopup context="" onpopupshowing="createForwardMenu(event);"/>
  114.         </toolbarbutton>
  115.         <toolbarbutton id="help-home-button"
  116.                        tooltiptext="&homeButton.tooltip;"
  117.                        command="Help:Home"/>
  118.         <toolbarseparator/>
  119.         <toolbarbutton id="help-print-button"
  120.                        label="&printButton.label;"
  121.                        oncommand="print();"
  122.                        tooltiptext="&printButton.tooltip;"/>
  123.         <toolbarspring flex="1"/>
  124.         <toolbaritem id="search-box"
  125.                      align="center" pack="center">
  126.           <label value="&searchtab.label;" accesskey="&searchtab.accesskey;" 
  127.                  control="findText"/>
  128.           <textbox id="findText" type="timed" timeout="500"
  129.                    onfocus="SearchbarFocusHandler(event, this);"
  130.                    onmousedown="SearchbarMouseDownHandler(event, this);"
  131.                    onclick="SearchbarClickHandler(event, this);"
  132.                    oncommand="doFind();"/>
  133.         </toolbaritem>
  134.       </toolbar>
  135.     </toolbox>
  136.  
  137.     <hbox flex="1">
  138.       <vbox id="help-sidebar" persist="width">
  139.         <vbox flex="1" id="help-toc-sidebar">
  140.           <sidebarheader align="center">
  141.             <label id="help-toc-sidebar-header" flex="1" crop="end" value="&toctab.label;"
  142.                    accesskey="&toctab.accesskey;" control="help-toc-panel"/>
  143.           </sidebarheader>
  144.           <tree id="help-toc-panel" class="focusring"
  145.                 flex="1"  hidecolumnpicker="true"
  146.                 datasources="rdf:null"
  147.                 containment="http://home.netscape.com/NC-rdf#subheadings"
  148.                 ref="urn:root" flags="dont-build-content"
  149.                 onselect="onselect_loadURI(this)">
  150.             <template>
  151.               <rule>
  152.                 <conditions>
  153.                   <content uri="?uri"/>
  154.                   <triple subject="?uri"
  155.                           predicate="http://home.netscape.com/NC-rdf#subheadings"
  156.                           object="?subheadings"/>
  157.                   <member container="?subheadings"
  158.                           child="?subheading"/>
  159.                 </conditions>
  160.                 <bindings>
  161.                   <binding subject="?subheading"
  162.                            predicate="http://home.netscape.com/NC-rdf#name"
  163.                            object="?name"/>
  164.                 </bindings>
  165.                 <action>
  166.                   <treechildren>
  167.                     <treeitem uri="?subheading">
  168.                       <treerow>
  169.                         <treecell label="?name"/>
  170.                       </treerow>
  171.                     </treeitem>
  172.                   </treechildren>
  173.                 </action>
  174.               </rule>
  175.             </template>
  176.             <treecols>
  177.               <treecol id="NameColumn" flex="1" hideheader="true"
  178.                        primary="true"/>
  179.             </treecols>
  180.           </tree>
  181.         </vbox>
  182.         <vbox id="help-search-sidebar" hidden="true" flex="1">
  183.           <sidebarheader align="center">
  184.             <label id="help-search-sidebar-header" flex="1" crop="end" value="&searchtab.label;"/>
  185.             <toolbarbutton id="find-closebutton"  oncommand="hideSearchSidebar();"/>
  186.           </sidebarheader>
  187.           <tree id="help-search-tree" class="focusring"
  188.                 flex="1" hidecolumnpicker="true"
  189.                 datasources="rdf:null"
  190.                 containment="http://home.netscape.com/NC-rdf#child"
  191.                 ref="urn:root" flags="dont-build-content"
  192.                 onselect="onselect_loadURI(this)">
  193.             <template>
  194.               <rule>
  195.                 <conditions>
  196.                   <content uri="?uri"/>
  197.                   <member container="?uri"
  198.                           child="?subheading"/>
  199.                 </conditions>
  200.                 <bindings>
  201.                   <binding subject="?subheading"
  202.                            predicate="http://home.netscape.com/NC-rdf#name"
  203.                            object="?name"/>
  204.                 </bindings>
  205.                 <action>
  206.                   <treechildren>
  207.                     <treeitem uri="?subheading">
  208.                       <treerow>
  209.                         <treecell label="?name"/>
  210.                       </treerow>
  211.                     </treeitem>
  212.                   </treechildren>
  213.                 </action>
  214.               </rule>
  215.             </template>
  216.             <treecols>
  217.             <treecol id="ResultsColumn" flex="1"
  218.                      hideheader="true" primary="true"
  219.                      sortActive="true" sortDirection="ascending"
  220.                      sort="?name"/>
  221.             </treecols>
  222.           </tree>
  223.         </vbox>
  224.  
  225.         <!-- BEGIN hidden trees used for searching -->
  226.         <!-- xxxmpc: we need a better solution for this -->
  227.  
  228.         <vbox id="help-sidebar-hidden-trees" hidden="true">
  229.           <tree id="help-glossary-panel"
  230.                 flex="1" hidecolumnpicker="true"
  231.                 datasources="rdf:null"
  232.                 containment="http://home.netscape.com/NC-rdf#subheadings"
  233.                 ref="urn:root" flags="dont-build-content"/>
  234.           <tree id="help-index-panel"
  235.                 flex="1" datasources="rdf:null"
  236.                 hidecolumnpicker="true"
  237.                 containment="http://home.netscape.com/NC-rdf#subheadings"
  238.                 ref="urn:root"
  239.                 flags="dont-build-content dont-test-empty"/>
  240.           <tree id="help-search-panel"
  241.                 flex="1" hidecolumnpicker="true"
  242.                 datasources="rdf:null"
  243.                 containment="http://home.netscape.com/NC-rdf#subheadings"
  244.                 ref="urn:root" flags="dont-build-content"/>
  245.         </vbox>
  246.  
  247.         <!-- END HIDDEN ITEMS -->
  248.       </vbox>
  249.  
  250.       <splitter id="help-sidebar-splitter" collapse="before"/>
  251.  
  252.       <vbox id="appcontent" flex="3">
  253.         <!-- type attribute is used by frame construction to locate
  254.              iframes intended to hold (html) content -->
  255.         <browser context="contentAreaContextMenu"
  256.                  type="content-primary" id="help-content"
  257.                  src="about:blank" flex="1"/>
  258.     <toolbar id="FindToolbar" hidden="true" align="center" fullscreentoolbar="true">
  259.       <toolbarbutton id="find-closebutton" tooltiptext="&findCloseButton.tooltip;"
  260.                      oncommand="closeFindBar();"/>
  261.  
  262.       <label control="find-field" value="&find.label;"/>
  263.       <hbox id="find-field-container">
  264.         <textbox id="find-field" oninput="find(this.value);"
  265.                 onkeypress="onFindBarKeyPress(event);" onblur="onFindBarBlur();"
  266.                 oncompositionstart="onFindBarCompositionStart(event);"
  267.                 oncompositionend="onFindBarCompositionEnd(event);"/>
  268.       </hbox>
  269.       <toolbarbutton id="find-next" label="&findNext.label;" tooltiptext="&findNext.tooltip;"
  270.                      command="cmd_findAgain" disabled="true" accesskey="&findNext.accesskey;"/>
  271.       <toolbarbutton id="find-previous" label="&findPrevious.label;" tooltiptext="&findPrevious.tooltip;"
  272.                      command="cmd_findPrevious" disabled="true" accesskey="&findPrevious.accesskey;"/>
  273.       <toolbarbutton id="highlight"
  274.                      label="&highlight.label;"
  275.                      tooltiptext="&highlight.tooltip;"
  276.                      oncommand="toggleHighlight(!this.checked);
  277.                                 if (gFindMode != FIND_NORMAL) setFindCloseTimeout();"
  278.                      type="checkbox" disabled="true"
  279.                      accesskey="&highlight.accesskey;"/>
  280.       <checkbox id="find-case-sensitive" oncommand="toggleCaseSensitivity(this.checked);"
  281.                 label="&caseSensitiveCheckbox.label;" accesskey="&caseSensitiveCheckbox.accesskey;"/>
  282.       <image id="find-status-icon"/>
  283.       <label id="find-status"/>
  284.     </toolbar>
  285.  
  286.       </vbox>
  287.     </hbox>
  288.   </vbox>
  289. </window>
  290.